package vip.sweet.sys.modular.login.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * @author ASUS
 * @Date 2025/4/29 12:08
 * @Descripition 登录监控实体类
 */
@AllArgsConstructor
@Data
@Builder
@NoArgsConstructor
@SuppressWarnings("all")
@TableName("sys_login_monitor_log")
@Schema(description = "登录监控实体类")
public class LoginMonitor {
    @Schema(description = "主键")
    @TableId(type = IdType.ASSIGN_ID)
    private String id;
    @Schema(description = "用户id")
    private String userId;
    @Schema(description = "用户名")
    private String userName;
    @Schema(description = "登录ip")
    private String loginIp;
    @Schema(description = "登录ip归属")
    private String loginIpAttribute;
    @Schema(description = "登录时间")
    private Date loginTime;
}
